<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>

        .box1{
         width: 900px;
         height: 300px;
         border: 1px solid #000;
         overflow: hidden;
        }
        .box1 img{
         height: 300px;
         transition: all 3s;
         /* 转换原点 */
         /* transform-origin: right bottom; */
        }
        .box1:hover img{
         /* 位移 */
         /* transform: translate(800px); */
         /* 旋转 */
         /* transform: rotate(360deg); */
         /* 边移边转 */
         transform: translate(800px) rotate(360deg) scale(.5);
        }

        .img2{
        width: 300px;
        height: 300px;
        transition: all 3s;
        }
        /* 平面缩放，大于1变大，小于1变小 */
        .img2:hover{
         transform: scale(.3);
        }
    </style>
</head>
<body>
    <div class="box1">
        <img src="./img/4.webp" alt="">
    </div>

    <img class="img2" src="./img/1.jpg" alt="">
</body>
</html>